package com.redrose.rxandroiddemo.service;


import com.redrose.rxandroiddemo.bean.Chapter;
import com.redrose.rxandroiddemo.bean.Response;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.GET;
import retrofit2.http.Path;

public interface Api {
    @GET("/wxarticle/chapters/json")
    Observable<Response<Chapter>> getChapters();


    @GET("/wxarticle/list/{id}/{pageSize}/json")
    Observable<Response<String>> getChapterListById(@Path("id") int id, @Path("pageSize") int pageSize);
}
